  /**
   * Generate time : 2013-07-05 6:02:21
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cb.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCBYearPlan 
 * table comment : 年计划 
 */
public class ZMCBYearPlan extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private String fdName = " ";		/* 计划名称*/
	private String fdChartName = " ";		/* 计划图名称*/
	private String fdYear = " ";		/* 计划年份*/
	private Double fdMineTarget = new Double(0);		/* 采煤指标*/
	private Double fdGrubTarget = new Double(0);		/* 掘进指标*/
	private Double fdDeploitationTarget = new Double(0);		/* 开拓指标*/
	private Double fdGrubCoalTarget = new Double(0);		/* 掘进煤指标*/
	private Double fdPlanMine = new Double(0);		/* 计划采煤总量*/
	private Double fdPlanGrub = new Double(0);		/* 计划掘进总量*/
	private Double fdPlanGrubMine = new Double(0);		/* 计划掘进煤总量*/
	private Double fdPlanDeploitation = new Double(0);		/* 计划开拓进尺量*/
	private String fdPublishDate = " ";		/* 发布日期*/
	private String fdStatus = " ";		/* 计划状态*/
	private String fdEditor = " ";		/* 编制人*/
	private String fdEditDate = " ";		/* 编制日期*/
	private String fdAuditor = " ";		/* 审批人*/
	private String fdPublisher = " ";		/* 发布人*/
	private String fdRemark = " ";		/* 编制说明*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdName");
	eiColumn.setFieldLength(100);	
	eiColumn.setDescName("计划名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdChartName");
	eiColumn.setFieldLength(100);	
	eiColumn.setDescName("计划图名称");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdYear");
	eiColumn.setFieldLength(4);	
	eiColumn.setDescName("计划年份");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMineTarget");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("采煤指标");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdGrubTarget");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("掘进指标");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDeploitationTarget");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("开拓指标");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdGrubCoalTarget");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("掘进煤指标");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanMine");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("计划采煤总量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanGrub");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("计划掘进总量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanGrubMine");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("计划掘进煤总量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanDeploitation");
	eiColumn.setType("N");
	eiColumn.setScaleLength(4);
	eiColumn.setFieldLength(12);
	eiColumn.setDescName("计划开拓进尺量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPublishDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("发布日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("计划状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdEditor");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("编制人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdEditDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("编制日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdAuditor");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("审批人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPublisher");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("发布人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRemark");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("编制说明");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCBYearPlan() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdName - 计划名称
	 * @return the fdName
	 */
	public String getFdName() {
		return this.fdName;
	}
	
	/**
	 * set the fdName - 计划名称
	 */
	public void setFdName(String fdName) {
		this.fdName = fdName;
	}
	
	/**
	 * get the fdChartName - 计划图名称
	 * @return the fdChartName
	 */
	public String getFdChartName() {
		return this.fdChartName;
	}
	
	/**
	 * set the fdChartName - 计划图名称
	 */
	public void setFdChartName(String fdChartName) {
		this.fdChartName = fdChartName;
	}
	
	/**
	 * get the fdYear - 计划年份
	 * @return the fdYear
	 */
	public String getFdYear() {
		return this.fdYear;
	}
	
	/**
	 * set the fdYear - 计划年份
	 */
	public void setFdYear(String fdYear) {
		this.fdYear = fdYear;
	}
	
	/**
	 * get the fdMineTarget - 采煤指标
	 * @return the fdMineTarget
	 */
	public Double getFdMineTarget() {
		return this.fdMineTarget;
	}
	
	/**
	 * set the fdMineTarget - 采煤指标
	 */
	public void setFdMineTarget(Double fdMineTarget) {
		this.fdMineTarget = fdMineTarget;
	}
	
	/**
	 * get the fdGrubTarget - 掘进指标
	 * @return the fdGrubTarget
	 */
	public Double getFdGrubTarget() {
		return this.fdGrubTarget;
	}
	
	/**
	 * set the fdGrubTarget - 掘进指标
	 */
	public void setFdGrubTarget(Double fdGrubTarget) {
		this.fdGrubTarget = fdGrubTarget;
	}
	
	/**
	 * get the fdDeploitationTarget - 开拓指标
	 * @return the fdDeploitationTarget
	 */
	public Double getFdDeploitationTarget() {
		return this.fdDeploitationTarget;
	}
	
	/**
	 * set the fdDeploitationTarget - 开拓指标
	 */
	public void setFdDeploitationTarget(Double fdDeploitationTarget) {
		this.fdDeploitationTarget = fdDeploitationTarget;
	}
	
	/**
	 * get the fdGrubCoalTarget - 掘进煤指标
	 * @return the fdGrubCoalTarget
	 */
	public Double getFdGrubCoalTarget() {
		return this.fdGrubCoalTarget;
	}
	
	/**
	 * set the fdGrubCoalTarget - 掘进煤指标
	 */
	public void setFdGrubCoalTarget(Double fdGrubCoalTarget) {
		this.fdGrubCoalTarget = fdGrubCoalTarget;
	}
	
	/**
	 * get the fdPlanMine - 计划采煤总量
	 * @return the fdPlanMine
	 */
	public Double getFdPlanMine() {
		return this.fdPlanMine;
	}
	
	/**
	 * set the fdPlanMine - 计划采煤总量
	 */
	public void setFdPlanMine(Double fdPlanMine) {
		this.fdPlanMine = fdPlanMine;
	}
	
	/**
	 * get the fdPlanGrub - 计划掘进总量
	 * @return the fdPlanGrub
	 */
	public Double getFdPlanGrub() {
		return this.fdPlanGrub;
	}
	
	/**
	 * set the fdPlanGrub - 计划掘进总量
	 */
	public void setFdPlanGrub(Double fdPlanGrub) {
		this.fdPlanGrub = fdPlanGrub;
	}
	
	/**
	 * get the fdPlanGrubMine - 计划掘进煤总量
	 * @return the fdPlanGrubMine
	 */
	public Double getFdPlanGrubMine() {
		return this.fdPlanGrubMine;
	}
	
	/**
	 * set the fdPlanGrubMine - 计划掘进煤总量
	 */
	public void setFdPlanGrubMine(Double fdPlanGrubMine) {
		this.fdPlanGrubMine = fdPlanGrubMine;
	}
	
	/**
	 * get the fdPlanDeploitation - 计划开拓进尺量
	 * @return the fdPlanDeploitation
	 */
	public Double getFdPlanDeploitation() {
		return this.fdPlanDeploitation;
	}
	
	/**
	 * set the fdPlanDeploitation - 计划开拓进尺量
	 */
	public void setFdPlanDeploitation(Double fdPlanDeploitation) {
		this.fdPlanDeploitation = fdPlanDeploitation;
	}
	
	/**
	 * get the fdPublishDate - 发布日期
	 * @return the fdPublishDate
	 */
	public String getFdPublishDate() {
		return this.fdPublishDate;
	}
	
	/**
	 * set the fdPublishDate - 发布日期
	 */
	public void setFdPublishDate(String fdPublishDate) {
		this.fdPublishDate = fdPublishDate;
	}
	
	/**
	 * get the fdStatus - 计划状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 计划状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	
	/**
	 * get the fdEditor - 编制人
	 * @return the fdEditor
	 */
	public String getFdEditor() {
		return this.fdEditor;
	}
	
	/**
	 * set the fdEditor - 编制人
	 */
	public void setFdEditor(String fdEditor) {
		this.fdEditor = fdEditor;
	}
	
	/**
	 * get the fdEditDate - 编制日期
	 * @return the fdEditDate
	 */
	public String getFdEditDate() {
		return this.fdEditDate;
	}
	
	/**
	 * set the fdEditDate - 编制日期
	 */
	public void setFdEditDate(String fdEditDate) {
		this.fdEditDate = fdEditDate;
	}
	
	/**
	 * get the fdAuditor - 审批人
	 * @return the fdAuditor
	 */
	public String getFdAuditor() {
		return this.fdAuditor;
	}
	
	/**
	 * set the fdAuditor - 审批人
	 */
	public void setFdAuditor(String fdAuditor) {
		this.fdAuditor = fdAuditor;
	}
	
	/**
	 * get the fdPublisher - 发布人
	 * @return the fdPublisher
	 */
	public String getFdPublisher() {
		return this.fdPublisher;
	}
	
	/**
	 * set the fdPublisher - 发布人
	 */
	public void setFdPublisher(String fdPublisher) {
		this.fdPublisher = fdPublisher;
	}
	
	/**
	 * get the fdRemark - 编制说明
	 * @return the fdRemark
	 */
	public String getFdRemark() {
		return this.fdRemark;
	}
	
	/**
	 * set the fdRemark - 编制说明
	 */
	public void setFdRemark(String fdRemark) {
		this.fdRemark = fdRemark;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdName")), fdName));
		setFdChartName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdChartName")), fdChartName));
		setFdYear(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdYear")), fdYear));
		setFdMineTarget(NumberUtils.toDouble(StringUtils.toString(map.get("fdMineTarget")), fdMineTarget));
		setFdGrubTarget(NumberUtils.toDouble(StringUtils.toString(map.get("fdGrubTarget")), fdGrubTarget));
		setFdDeploitationTarget(NumberUtils.toDouble(StringUtils.toString(map.get("fdDeploitationTarget")), fdDeploitationTarget));
		setFdGrubCoalTarget(NumberUtils.toDouble(StringUtils.toString(map.get("fdGrubCoalTarget")), fdGrubCoalTarget));
		setFdPlanMine(NumberUtils.toDouble(StringUtils.toString(map.get("fdPlanMine")), fdPlanMine));
		setFdPlanGrub(NumberUtils.toDouble(StringUtils.toString(map.get("fdPlanGrub")), fdPlanGrub));
		setFdPlanGrubMine(NumberUtils.toDouble(StringUtils.toString(map.get("fdPlanGrubMine")), fdPlanGrubMine));
		setFdPlanDeploitation(NumberUtils.toDouble(StringUtils.toString(map.get("fdPlanDeploitation")), fdPlanDeploitation));
		setFdPublishDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPublishDate")), fdPublishDate));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdEditor(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEditor")), fdEditor));
		setFdEditDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEditDate")), fdEditDate));
		setFdAuditor(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdAuditor")), fdAuditor));
		setFdPublisher(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPublisher")), fdPublisher));
		setFdRemark(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemark")), fdRemark));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdName",StringUtils.toString(fdName, eiMetadata.getMeta("fdName")));	
			map.put("fdChartName",StringUtils.toString(fdChartName, eiMetadata.getMeta("fdChartName")));	
			map.put("fdYear",StringUtils.toString(fdYear, eiMetadata.getMeta("fdYear")));	
			map.put("fdMineTarget",StringUtils.toString(fdMineTarget, eiMetadata.getMeta("fdMineTarget")));	
			map.put("fdGrubTarget",StringUtils.toString(fdGrubTarget, eiMetadata.getMeta("fdGrubTarget")));	
			map.put("fdDeploitationTarget",StringUtils.toString(fdDeploitationTarget, eiMetadata.getMeta("fdDeploitationTarget")));	
			map.put("fdGrubCoalTarget",StringUtils.toString(fdGrubCoalTarget, eiMetadata.getMeta("fdGrubCoalTarget")));	
			map.put("fdPlanMine",StringUtils.toString(fdPlanMine, eiMetadata.getMeta("fdPlanMine")));	
			map.put("fdPlanGrub",StringUtils.toString(fdPlanGrub, eiMetadata.getMeta("fdPlanGrub")));	
			map.put("fdPlanGrubMine",StringUtils.toString(fdPlanGrubMine, eiMetadata.getMeta("fdPlanGrubMine")));	
			map.put("fdPlanDeploitation",StringUtils.toString(fdPlanDeploitation, eiMetadata.getMeta("fdPlanDeploitation")));	
			map.put("fdPublishDate",StringUtils.toString(fdPublishDate, eiMetadata.getMeta("fdPublishDate")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdEditor",StringUtils.toString(fdEditor, eiMetadata.getMeta("fdEditor")));	
			map.put("fdEditDate",StringUtils.toString(fdEditDate, eiMetadata.getMeta("fdEditDate")));	
			map.put("fdAuditor",StringUtils.toString(fdAuditor, eiMetadata.getMeta("fdAuditor")));	
			map.put("fdPublisher",StringUtils.toString(fdPublisher, eiMetadata.getMeta("fdPublisher")));	
			map.put("fdRemark",StringUtils.toString(fdRemark, eiMetadata.getMeta("fdRemark")));	
			
		return map;
	
	}
}